<?php

?>
<?php $form= \yii\widgets\ActiveForm::begin(['id'=>'addForm']);?>

<div>
    <?=$form->field($model, "username")->textInput();?>
</div>
<div>
    <?=$form->field($model, "password")->textInput();?>
</div>
<div>
    男: <input type="radio" name="sex" value="1" />    
    女: <input type="radio" name='sex' value="0" />

</div>
<div>
    <?=$form->field($model, "age")->textInput();?>
</div>
<input type="submit" value="注册"/>



<?php \yii\widgets\ActiveForm::end();?>